<?php

/**
 * BaseMtipomoneda
 * 
 * This class is member of the DAO layer.
 * 
 * @property integer $id
 * @property string $descripcion
 * @property integer $habilitado
 * @property Doctrine_Collection $Movimientotransferencia
 * 
 * @author     Claudio Corlatti <corlatti@gmail.com>
 *  $Id: BaseMtipomoneda.php 12 2010-07-06 04:34:57Z corlatti $
 */
abstract class BaseMtipomoneda extends Doctrine_Record {
    public function setTableDefinition()
    {
        $this->setTableName('mtipomoneda');
        $this->hasColumn('id', 'integer', 4, array('type' => 'integer', 'length' => 4, 'primary' => true, 'autoincrement' => true));
        $this->hasColumn('descripcion', 'string', 20, array('type' => 'string', 'length' => 20, 'notnull' => true));
        $this->hasColumn('habilitado', 'integer', 4, array('type' => 'integer', 'length' => 4, 'unsigned' => 1, 'default' => '1', 'notnull' => true));
    }

    public function setUp()
    {
        $this->hasMany('Movimientotransferencia', array('local' => 'id',
                                                        'foreign' => 'idMoneda'));
    }
}
?>